#ifndef COMMON_H
#define COMMON_H

#include <QScopedPointer>
#include <exception>

#define QSP(type) QScopedPointer<type>

class my_exception : public std::exception {
public:
	my_exception (const char *_msg)
		:msg(_msg) { }

	const char *what () { return msg; }

private:
	const char *msg;
};

#endif // COMMON_H
